<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>todoL ist</title>
    <style>
      .box {
        margin-top: 40px;
        font-size: 16px;
        font-family: '楷体', '宋体';
        color: black;
      }

      .container {
        margin: 0 auto;
        width: 800px;
        padding: 20px;
        min-height: 400px;
        box-shadow: 1px 1px 20px 0px rgba(0, 0, 0, 0.1);
      }

      header .title {
        font-size: 26px;
      }

      .clear-default-input {
        border: none;
        outline: none;
        border-radius: 0;
      }

      .add-todo-list {
        margin: 30px auto;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .add-todo-input {
        margin-right: 30px;
        width: 650px;
        font-size: 22px;
        line-height: 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.3);
        transition: 0.4s;
      }

      .add-todo-input:focus {
        border-bottom: 1px solid rgba(0, 0, 0, 1);
      }

      .add-todo-btn {
        cursor: pointer;
        -webkit-appearance: none;
        text-align: center;
        box-sizing: border-box;
        transition: 0.1s;
        font-weight: 500;
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 4px;
        box-shadow: none;
        outline: none;
        border: none;
        background-color: #409eff;
        border-color: #409eff;
        color: white;
      }

      .add-todo-btn:hover {
        background: #66b1ff;
        border-color: #66b1ff;
      }

      .todo-list {
        width: 100%;
      }

      .no-user-select {
        user-select: none;
      }

      .todo-list .item {
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
        padding: 10px 10px;
        border: 1px solid rgba(0, 0, 0, 0.1);
      }

      .todo-list .item:first-child {
        margin-top: 20px;
      }

      .todo-list .item .todo-list-body {
        display: flex;
        align-items: center;
      }

      .todo-list .item:hover {
        transition: 0.2s;
        background: rgba(200, 200, 200, 0.1)
      }

      .todo-list .item .todo-list-body .value {
        margin-left: 10px;
      }

      .todo-list .item .delete {
        transition: 0.2s;
        color: rgba(0, 0, 0, 0.6);
      }

      .todo-list .item .delete:hover {
        color: black
      }

    </style>
  </head>

  <body>
    <div class="box">
      <div class="container">
        <header>
          <div class="title">添加任务</div>
          <div class="add-todo-list">
            <input type="text" class="add-todo-input clear-default-input" id="add-todo-input" autocomplete="off">
            <button type="text" class="add-todo-btn" id="add-todo-btn">添加</button>
          </div>

        </header>
        <nav></nav>
        <main>
          <div class=" todo-list">
            <div class="item">
              <label class="todo-list-body no-user-select">
                <input type="checkbox">
                <div class="value">分析react hooks源码</div>
              </label>
              <div class="delete no-user-select">删除</div>
            </div>
            <div class="item">
              <label class="todo-list-body no-user-select">
                <input type="checkbox">
                <div class="value">分析react hooks源码</div>
              </label>
              <div class="delete no-user-select">删除</div>
            </div>
            <div class="item">
              <label class="todo-list-body no-user-select">
                <input type="checkbox">
                <div class="value">演示改需求 ,如何优雅扩展代码</div>
              </label>
              <div class="delete no-user-select">删除</div>
            </div>
            <div class="item">
              <label class="todo-list-body no-user-select">
                <input type="checkbox">
                <div class="value">1.添加分类 2.添加编辑 3.扩展时间 详细描述 4.增加搜索 5.已经完成的不允许编辑</div>
              </label>
              <div class="delete no-user-select">删除</div>
            </div>
          </div>
        </main>
      </div>

    </div>
  </body>

</html>
